package model;

import java.util.Date;

public class Wedstrijd {
	
	private int wedstrijdNr;
	private Team team1;
	private Team team2;
	private int scoreTeam1;
	private int scoreTeam2;
	private Date datum;
	
	public Wedstrijd (int wedstrijdNr, Team team1, Team team2){
		this.setWedstrijdNr(wedstrijdNr);
		this.team1 = team1;
		this.team2 = team2;
	}

	public Team getTeam1() {
		return team1;
	}

	public void setTeam1(Team team1) {
		this.team1 = team1;
	}

	public Team getTeam2() {
		return team2;
	}

	public void setTeam2(Team team2) {
		this.team2 = team2;
	}
	
	public void setUitslag(int score1, int score2){
		this.scoreTeam1 = score1;
		this.scoreTeam2 = score2;
	}
	
	public String getUitslag(){
		return scoreTeam1 + " - " + scoreTeam2;
	}

	public int getScoreTeam1() {
		return scoreTeam1;
	}

	public int getScoreTeam2() {
		return scoreTeam2;
	}

	public Date getDatum() {
		return datum;
	}

	public int getWedstrijdNr() {
		return wedstrijdNr;
	}

	public void setWedstrijdNr(int wedstrijdNr) {
		this.wedstrijdNr = wedstrijdNr;
	}

}
